#ifndef NIBBLE_H_
#define NIBBLE_H_

#include <packedobjects/packedobjects.h>

#include "frame.h"
#include "dtmf.h"
#include "sound.h"

typedef struct {
  packedobjectsContext *pc;
} nibbleContext;


nibbleContext *init_nibble(const char *schema_file);
int tx_nibble(nibbleContext *nc, xmlDocPtr doc, int seconds);
xmlDocPtr rx_nibble(nibbleContext *nc, int seconds);
void free_nibble(nibbleContext *nc);

#endif

